package javasec.contempt;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.eclipse.ui.console.IConsoleConstants;

public class Perspective implements IPerspectiveFactory
{

	public void createInitialLayout(IPageLayout layout)
	{
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(true);
		layout.setFixed(false);

		IFolderLayout seedFolder=layout.createFolder("seedFolder",
			IPageLayout.LEFT,0.382f,editorArea);
		
		seedFolder.addView("javasec.contempt.views.ConnectionsView");
		seedFolder.addView("javasec.contempt.views.AssetsView");
		seedFolder.addView("javasec.contempt.views.VisualsView");
		
		IFolderLayout consoleFolder=layout.createFolder("consoleFolder",
			IPageLayout.BOTTOM,0.70f,layout.getEditorArea());
		
		consoleFolder.addView(IConsoleConstants.ID_CONSOLE_VIEW);

		// open up the javasec.contempt log
		
	}
}
